package com.theatre.userservice.model.entity;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@TableName("user")
@Data
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("username")
    private String username;

    @TableField("real_name")
    private String realName;

    @TableField("email")
    private String email;

    @TableField("phone")
    private String phone;

    @TableField("password")
    private String password;

    @TableField("avatar")
    private String avatar;

    @TableField("role_id")
    private Long roleId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;  // 驼峰命名（Java字段）

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;  // 驼峰命名（Java字段）

    // Getter 和 Setter 方法
}
